import requests

from config import BASE_URL


class LoginApi:
    """发送ihrm登录请求"""

    def login(self, body):
        url = BASE_URL + "/api/sys/login"
        resp = requests.post(url, json=body)
        return resp

